package cn.xzzz2020.XJynWeb.aop.aspect;

import cn.xzzz2020.XJynWeb.aop.PointcutLocator;

/**
 * @author xzzz2020
 * @version 1.0
 * @date 2020/8/5 11:17
 */
public class AspectInfo {
    //Aspect的执行顺序
    private  int OrderIndex;
    //Aspect
    private  DefaultAspect defaultAspect;

    private PointcutLocator pointcutLocator;

    public AspectInfo(int orderIndex, DefaultAspect defaultAspect, PointcutLocator pointcutLocator) {
        OrderIndex = orderIndex;
        this.defaultAspect = defaultAspect;
        this.pointcutLocator = pointcutLocator;
    }

    public AspectInfo() {
    }

    public int getOrderIndex() {
        return OrderIndex;
    }

    public DefaultAspect getDefaultAspect() {
        return defaultAspect;
    }

    public PointcutLocator getPointcutLocator() {
        return pointcutLocator;
    }

    @Override
    public String toString() {
        return "AspectInfo{" +
                "OrderIndex=" + OrderIndex +
                ", defaultAspect=" + defaultAspect +
                ", pointcutLocator=" + pointcutLocator +
                '}';
    }
}
